<view class="padding flex flex-direction">
    <button bindtap="upload" class="cu-btn  bg-cyan  lg" style="margin-bottom:10rpx;">
		选择图片</button>
    <canvas canvasId="mycanvas" class="canvas" style="width:{{width}}px;height:{{height}}px;position:absolute;left:-99999px;"></canvas>
    <view style="height:60vh;display: flex;flex-direction: column;align-items: center;">
        <image mode="aspectFit" src="data:image/png;base64,{{imagebase64}}" style="height:{{height}}px;width:{{width}}px;background-color: {{bgColor}};"></image>
    </view>
    <view class="flex  flex-wrap justify-between align-center" style="padding:5rpx;" wx:if="{{show}}">
        <picker bindchange="bindFontCoPickerChange" class="cu-btn  bg-cyan  lg" range="{{fontColorArray}}" value="{{index}}">
            <view class="text-white">填充颜色</view>
        </picker>
        <button bindtap="clearColor" class="cu-btn  bg-cyan  lg" style="margin-bottom:10rpx;margin-top:10rpx">清空填充</button>
        <button bindtap="save" class="cu-btn  bg-cyan  lg">保存到相册</button>
    </view>
</view>
<adComponent  wx:if="{{ad}}" ad="{{ad}}"/>
